package com.hlhj.funlike_businessqzxd.moudle;

import android.content.Context;

import com.example.mymvp.mvp.BaseModule;
import com.hlhj.funlike_businessqzxd.api.Apis;
import com.hlhj.funlike_businessqzxd.api.BaseObser;
import com.hlhj.funlike_businessqzxd.bean.NumBean;
import com.hlhj.funlike_businessqzxd.views.OrderFgmView;
import com.lzy.okgo.model.Response;

public class OrderFgmMoudle implements BaseModule{
    public OrderFgmView lis;

    public void getNum(Context context){
        Apis.INSTANCE.getOrderNum()
                .subscribe(new BaseObser<Response<NumBean>>(context) {
                    @Override
                    public void httpSuccess(Response<NumBean> numBeanResponse) {
                        lis
                                .setNum(numBeanResponse.body());
                    }
                });
    }

}
